package com.wsd.web;


import com.cif.service.AccountService;
import com.idf.service.IManagerService;
import com.wsd.common.Result;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author wjh
 */
@Controller
public class DubboDemoController extends BaseController{

    /*@Reference(version = "1.0.0", url = "${dubbo.service.idfurl}")
    private IManagerService iManagerService;

    @ResponseBody
    @RequestMapping("/getManager")
    public Result getManager() {
        Result result = changeResult(iManagerService.getManagers());
        return result;
    }*/

    /*@Reference(version = "1.0.0", url = "${dubbo.service.cifurl}")
    private AccountService accountService;

    @ResponseBody
    @RequestMapping("/getAccount")
    public Result getAccount() {
        Result result = changeResult(accountService.getAccountInfo("1234567890123456789"));
        return result;
    }*/

}
